package com.smmisia.common.request.auth;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

/**
 * @author: smmisia
 * @date: 2023-09-08
 * @description: 登录请求参数
 */
@Data
public class LoginRequest {

    @NotBlank(message = "邮箱不能为空")
    @Pattern(
            regexp = "^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$",
            message = "邮箱格式不正确"
    )
    private String email;

    @NotBlank(message = "验证码不能为空")
    private String code;

}